<!DOCTYPE html>
<html>
<head>
    <title>申请职位管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=yes" name="format-detection">
	<meta content="email=no" name="format-detection">
	#parse("/h5/common/webWords.html")
	<LINK rel=stylesheet type=text/css href="http://${staticHost}/css/component.css">
	<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/medioadaption.css"/>
	<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css"/>
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/common.css" />
    <script type="text/javascript" src="http://${staticHost}/js/jquery2.js"></script>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$(".sendAgain").click(function(){
                if($(this).attr("status") == 2){
                    return false;
                }
                $(this).attr("status",2);
    			var _this = $(this);
    			var companyId = _this.attr('companyId');
    			var userJobSeekerId = _this.attr('resumeId');
    			var positionId = _this.attr('postId');
    			$.ajax({
    				type : 'post',
    				url : '/personnelWork/auth/sendResume',
    				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
    				data : {
    					companyId : companyId,
    					userJobSeekerId : userJobSeekerId,
    					positionId : positionId
    				},
    				success : function(result) {
                        if (result.status == "1") {
                            showMessage('该职位已关闭');
						}
						if (result.status == "2") {
							showMessage('每天只能投递18份简历');
						}
						if (result.status == "3") {
							showMessage('简历已经删除了');
							return;
						}
						if ('00000000' == result.status) {
							layer.open({
								content: '投递成功'
								,btn: '关闭',
								yes: function(index){
									location.reload();
								}
							});
						}
                    }
    			});
    		});
    		
    		$(".deleteResume").click(function(){
    			var _this = $(this);
    			var deliveryId = _this.attr('deliveryId');
                if($(this).attr("status") == 2){
                    return false;
                }
                $(this).attr("status",2);
    			$.ajax({
    				type : 'post',
    				url : '/personnelWork/auth/deleteResume',
    				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
    				data : {
    					deliveryId : deliveryId
    				},
    				success : function(result) {
    					if ('00000000' == result.status) {
                            layer.open({
                                content: '删除成功'
                                ,btn: '关闭',
                                yes: function(index){
                                    location.reload();
                                }
                            });
    					}
    				}
    			});
    		});

            $('.jobname').click(function() {
                var positionId = $(this).attr("positionId");
                $.ajax({
                    type:'post',
                    url:'${requestHost}/personnelWork/public/toWorkDetails',
                    contentType:'application/x-www-form-urlencoded; charset=utf-8',
                    data:{
                        positionId:positionId
                    },
                    success: function (result) {
                        if(result.status == "0"){
                            layer.open({
                                content: '该职位已关闭',
                                btn:'好的'
                            });
                        }else{
                            window.location.href='/personnelWork/auth/workDetails?positionId='+positionId;
                        }
                    }
                });
            });

    		$(".moreDelivery").click(function () {
                var _this = $(this);
                var sign = _this.attr('sign');
                var num = _this.attr('num');
                num = num*1 + 1;
                $.ajax({
                    type:'post',
                    url:'${requestHost}/public/moreDelivery',
                    contentType:'application/x-www-form-urlencoded; charset=utf-8',
                    data:{
                        sign:sign,
                        num:num,
                        parentId:2
                    },
                    success: function (result) {
                        var newsList = result.result;
                        var newsJson = eval("("+newsList+")");
                        $.each(newsJson, function (i, val) {
                        	var id = val.id;
                            var position = val.position;
                            var jobPayName = val.jobPayName;
                            var expectedJobAreaName = val.expectedJobAreaName;
                            var workingLifeName = val.workingLifeName;
                            var expectedJobNatureName = val.expectedJobNatureName;
                            var educationName = val.educationName;
                            var companyName = val.companyName;
                            var companyId = val.companyId;
                            var jobSeekerId = val.jobSeekerId;
                            var positionId = val.positionId;
                            var id = val.id;
                            var headPortrait = val.headPortrait;
                            if(position.position > 40){
                                position.substring(0, 40)+'...';
                            }
                           	if(i == 0){
                           		$("#jianlilistId").append("<li class='jobli' style='border-top: 12px #f8f7fc solid;'><p><span class='jobname fl' positionId='"+positionId+"'>"+position+"</span><span class='payment fr'>"+jobPayName+"</span></p><p class='fs14'><span class='fl c102'>"+expectedJobAreaName+"<i class='shuxian c172'>|</i>"+workingLifeName+"<i class='shuxian c172'>|</i>"+expectedJobNatureName+"<i class='shuxian c172'>|</i>"+educationName+"</span></p><p  class='fs14'><span><img src="+headPortrait+" style='width: 30px;z-index: 2;position: relative;border-radius: 50% 50%;'></span><span class='bgspan'>"+companyName+"</span><span class='fr c333'><span class='sendAgain' companyId="+companyId+" resumeId="+jobSeekerId+" status='1' postId="+positionId+">再次投递</span><i class='shuxian shuping'>|</i><span deliveryId="+id+" status='1' class='deleteResume'>删除</span></span></p></li>");
                           	}else if (i == 3 || i == newsJson.length-1){
                           		$("#jianlilistId").append("<li class='jobli' style='border-bottom: 1px #f8f7fc solid;'><p>span class='jobname fl' positionId='"+positionId+"'>"+position+"</span><span class='payment fr'>"+jobPayName+"</span></p><p class='fs14'><span class='fl c102'>"+expectedJobAreaName+"<i class='shuxian c172'>|</i>"+workingLifeName+"<i class='shuxian c172'>|</i>"+expectedJobNatureName+"<i class='shuxian c172'>|</i>"+educationName+"</span></p><p  class='fs14'><span><img src="+headPortrait+" style='width: 30px;z-index: 2;position: relative;border-radius: 50% 50%;'></span><span class='bgspan'>"+companyName+"</span><span class='fr c333'><span class='sendAgain' companyId="+companyId+" resumeId="+jobSeekerId+" status='1' postId="+positionId+">再次投递</span><i class='shuxian shuping'>|</i><span deliveryId="+id+"  status='1' class='deleteResume'>删除</span></span></p></li>");
                           	}else{
                           		$("#jianlilistId").append("<li class='jobli' ><p><span class='jobname fl' positionId='"+positionId+"'>"+position+"</span><span class='payment fr'>"+jobPayName+"</span></p><p class='fs14'><span class='fl c102'>"+expectedJobAreaName+"<i class='shuxian c172'>|</i>"+workingLifeName+"<i class='shuxian c172'>|</i>"+expectedJobNatureName+"<i class='shuxian c172'>|</i>"+educationName+"</span></p><p  class='fs14'><span><img src="+headPortrait+" style='width: 30px;z-index: 2;position: relative;border-radius: 50% 50%;'></span><span class='bgspan'>"+companyName+"</span><span class='fr c333'><span class='sendAgain' companyId="+companyId+" resumeId="+jobSeekerId+" status='1' postId="+positionId+">再次投递</span><i class='shuxian shuping'>|</i><span deliveryId="+id+"  status='1' class='deleteResume'>删除</span></span></p></li>");
                           	}
                            _this.attr('num', num);
                        });
                    }
                });
            });
    	});

    </script>
	<style>
		.jianlilistul {margin-top: 10px;border-top: 1px dashed #ddd;}
		.jianlilistli {height: 50px;padding-top: 6px;border-bottom: 1px dashed #ddd;padding-bottom: 6px;}
		.w100 {width: 100px;display: inline-block;margin-left: 20px;white-space: nowrap;overflow: hidden;}
		.jianlilistli p{height:20px;line-height:20px;color: #4e4e4e;}
		.applyfortime{color:#777;}
		.loadmore{background:white;}
		body{background:white;}
		/**新增**/


		.jobli {
			border-bottom: 12px #f8f7fc solid;
			padding: 8px 2% 16px 2%;
			width: 96%;
			float: left;
		}
		.jobli p {
			height: 30px;
			line-height: 30px;
			color: #4e4e4e;
		}
		.jobname {
			color: black;
			font-size: 18px;
		}
		.payment {
			font-size: 16px;
			color: rgb(253,88,94);
		}
		.jobli p span{
			display: inline-block;
			white-space: nowrap;
			overflow: hidden;
		}
		.fs14 {
			font-size: 14px;
		}
		.c102 {
			color: rgb(102,102,102);
		}
		.c172 {
			color: rgb(172,172,172);
		}
		.c333{color: #333333;}
		.shuxian {
			padding-left: 4px;
			padding-right: 4px;
		}
		.bgspan {
			background: rgb(244,245,247);
			padding: 0px 6px 0px 15px;
			color: rgb(153,153,153);
			border-radius: 10px 3px 3px 10px;
			margin-right: 8px;
			margin-left: -8px;
			z-index: 1;
		}
		.shuping {
			display: inline-block;
			white-space: nowrap;
			overflow: hidden;
		}

		.loadmorep {
			background: white;
			text-align: center;
			padding: 10px;
			font-size: 14px;
		}
        .scroll_box_more a:hover {
            background-color: #eeeeee;
            color: #666666;
        }
        .scroll_box_more {
            margin-bottom: 40px;
        }
		.keyword {
			background: url(http://116.255.210.85:9911/images/searchinput.png) no-repeat;
			background-size: 15px;
			background-position: 5px;
			padding-left: 25px;
		}
		.jobtitle1{
			font-size: 18px;
            height: 50px;
            line-height: 50px;
			color: #333333;
			background-color: #fefeff;
			border-bottom: 1px solid #f8f7fc;
		}
	</style>
</head>
<body class="bodybg" style="background: #f8f7fc;">
#parse("/h5/common/back.html")
<!--头部 begin -->
<!--头部 end -->
<div style="background: white;">
  <!--<div class="weizhi clear" style="font-size:14px;"> 导航位置：<a href="/personnelWork/auth/applyJob" style="color: #0f7bdd;"> 梦想在线 > 个人中心</a></div>-->
  <div align="center" class="jobtitle1">申请职位管理</div>
	<!--<section class="searchSection">
		<div style="text-align: center;margin: 1.5rem 0;">
			<input type="text" class="keyword" id="position" value="#if(!$position)#else$position#end" style="border: 1px solid #ddd; height: 30.5px;line-height:30px; width: 210px;" placeholder="请输入职位名称" /><input type="button"  class="searchbutton" style="height: 32px; width: 60px;background: #188aff;color: white;font-size:14px;"  value="搜索"/>
		</div>
	</section>-->
  <div class="jianlilist">
	<ul class="" id="jianlilistId">
		#foreach($recruitment in $submittedResumeList)
		<li class="jobli"  #if($velocityCount == $submittedResumeList.size()) style="border-bottom: 1px #f8f7fc solid;" #end>
				<p>
					<span class="jobname fl" positionId="$recruitment.positionId">#if($recruitment.position.length()>40)$recruitment.position.substring(0,40)...#else$recruitment.position#end</span>
					<span class="payment fr">$recruitment.jobPayName</span>
				</p>
				<p class="fs14">
					<span class="fl c102">$recruitment.expectedJobAreaName<i class="shuxian c172">|</i>$recruitment.workingLifeName<i class="shuxian c172">|</i>$recruitment.expectedJobNatureName<i class="shuxian c172">|</i>$recruitment.educationName</span>
				</p>
				<p  class="fs14">
					<span><img src="$recruitment.headPortrait" style="width: 30px;z-index: 2;position: relative;border-radius: 50% 50%;"></span>
					<span class="bgspan">$recruitment.companyName</span>
					<span class="fr c333">
						<span class="sendAgain" companyId="$recruitment.companyId" status="1" resumeId="$recruitment.jobSeekerId" postId="$recruitment.positionId">再次投递</span>
						<i class="shuxian shuping">|</i>
						<span deliveryId="$recruitment.id" status="1" class="deleteResume">删除</span>
					</span>
				</p>
		</li>
	    #end
		<div class="clear"></div>
	</ul>
      <div class="scroll_box_more">
          <p class="loadmorep"  num="1">
              <a onclick=return false disabled class="moreDelivery" num="1" href="javascript:void(0)">点击加载更多<i><img src="http://${staticHost}/images/moredown.png" style="height:12px;width:auto;padding-left:6px;display: inline-block;"></i></a>
          </p>
      </div>
  </div>
</div>

<div class="dialogMask" style="display: none; z-index: 118; opacity: 0.5;"></div>
<div class="choice choiceIndustry" style="position: absolute; left: 0px; bottom: 0px; display: none; z-index: 119;">
	<div class="choiceCon">
		<div class="choiceContent">
			<div class="choiceTxt">
				<p id="_limit"></p>
				<div class="choiceTopBtn">
					<a href="javascript:void(0)" class="popBtn1 _btnAreaClear" id="_btnAreaClear" data="">清空</a>
					<a href="javascript:void(0)" class="popBtn2 _btnAreaOk" id="_btnAreaOk"><b class="L"></b><b class="R"></b>确定</a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="choiceLst">
			</div>
			<p class="tit">已选行业：</p>			
			<div class="choiceSelected">	
			<ul id="_selected">
			</ul>				
			<div class="clear"></div>			
			</div>
		</div>
	</div>
</div>
<script>
		
</script>
<!--底部 begin -->
#parse("/h5/common/footer.html")
<!-- 底部 end -->
</body>
</html>
